f9677575f71ce36bbc1e66f733ca0433f2206504,plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/extractMethod/ExtractMethodInfoHelper.java,ExtractMethodInfoHelper,ExtractMethodInfoHelper,#VariableInfo[]#VariableInfo#PsiElement[]#GrStatement[]#GrMemberOwner#boolean#boolean#,62
Before Change
!(statements[0] instanceof GrAssignmentExpression)) {
PsiType type = ((GrExpression) statements[0]).getType();
if (type != null) {
myOutputType = TypeConversionUtil.erasure(type);
} else {
myOutputType = PsiType.VOID;
}
After Change
GrStatement finalStatement = myStatements[myStatements.length - 1];
if (finalStatement instanceof GrExpression) {
outputType = ((GrExpression)finalStatement).getType();
if (outputType != null) {
outputType = TypeConversionUtil.erasure(outputType);
}
}
}